import request from '@/utils/request'
export function addLesson(data) {
  return request({
    url: '/lesson',
    method: 'post',
    data: data
  })
}
//获取课程
export function getLessonList(query) {
  return request({
    url: '/lesson/list',
    method: 'get',
    params: query
  })
}
//删除课程
export function deleteLesson(data) {
  return request({
    url: '/lesson/'+data,
    method: 'delete',
  })
}
//修改课程
export function editList(data) {
  return request({
    url: '/lesson',
    method: 'put',
    data: data
  })
}
//获取单个课程
export function getLesson(id) {
  return request({
    url: '/lesson/' + id,
    method: 'get'
  })
}


